[FLINK-40190][python] Add PyFlink DataFrame creation and conversion APIs - #28934
Open
auroflow wants to merge 6 commits into
Open
[FLINK-40190][python] Add PyFlink DataFrame creation and conversion APIs#28934auroflow wants to merge 6 commits into
auroflow wants to merge 6 commits into
Conversation
Add pandas, Arrow, Table, and range creators with strict schema and watermark validation. Add DataFrame conversion wrappers and schema-aware in-memory and Arrow source paths. Generated-by: Codex (GPT-5)
Align timezone-aware Arrow timestamps with existing Table API semantics, delegate pandas creation to the Arrow path, and add split-aware Arrow IPC serialization. Refine watermark and row helpers with focused tests. Generated-by: Codex (GPT-5)
Combine inferred-schema row conversion with DataFrame creation and let range use its known BIGINT schema directly. Generated-by: Codex (GPT-5)
Collaborator
Reject ranges whose emitted values exceed signed BIGINT bounds before creating the underlying table. Cover valid boundary values and ascending and descending overflow cases. Generated-by: Codex (GPT-5)
auroflow
force-pushed
the
codex/flink-40190-dataframe-conversion
branch
from
August 6, 2026 09:40
f53446b to
654b9ca
Compare
Clarify that to_table does not execute a job, simplify the DataFrame creation and results reference pages, and exercise from_pandas through filtering, projection, and conversion in the existing pandas round-trip integration smoke test. Generated-by: Codex (GPT-5)
auroflow
force-pushed
the
codex/flink-40190-dataframe-conversion
branch
from
August 7, 2026 03:02
66e5281 to
e693442
Compare
auroflow
marked this pull request as ready for review
August 7, 2026 03:09
Inline the single-use Arrow IPC writer into TableEnvironment._from_arrow and remove its helper-specific tests. This also avoids the NamedTemporaryFile wrapper type mismatch reported by mypy. Generated-by: Codex (GPT-5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
This pull request completes the data creation and conversion APIs for the PyFlink DataFrame API described in FLINK-40190.
It adds creation from pandas DataFrames, PyArrow tables, PyFlink Tables, dictionaries, records, and integer ranges. It also supports conversion back to Table and pandas, explicit column names, and event-time watermarks where applicable.
Brief change log
from_pandas(),from_arrow(),from_table(), andrange(), and complete the existingfrom_dict()andfrom_records()creators.DataFrame.to_table()andDataFrame.to_pandas().Verifying this change
This change added tests and can be verified as follows:
to_table()andto_pandas().from_arrow()→ DataFrame transformation →to_pandas().Does this pull request potentially affect one of the following parts:
@Public(Evolving): yesDocumentation
Was generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-5)